/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.pg.ipse.kb.frame.core;

/**
 *
 */
public class DefaultInferenceEngine implements IInferenceEngine {

    private final IFrameAccessObject fao;

    private final Context context;

    public DefaultInferenceEngine(IFrameAccessObject fao, Context context) {
        if (fao == null || context == null) {
            throw new IllegalArgumentException("NULL input parameters");
        }
        this.fao = fao;
        this.context = context;
    }

    public Object execute() {

        Frame effectiveExecutionFrame = fao.getFrame(4);
        return effectiveExecutionFrame.test();
    }

}
